﻿using System;
using System.Collections.Generic;

using System.Text;
using System.IO;

namespace wrzy.utll
{
    /// <summary>
    /// 当前的类是整个程序都会用到的方法
    /// </summary>
    class General
    {
        /// <summary>
        /// 获取当前的时间
        /// </summary>
        public static string getTime()
        {
            string strT = DateTime.Now.ToLocalTime().ToString();
            return strT;
        }
        /// <summary>
        /// 获取当前的日期
        /// </summary>
        /// <returns></returns>
        public static string getDate()
        {
            string str = DateTime.Now.ToString("yyyy-MM-dd");
            return str;
        }
        /// <summary>
        /// 获取当前的路径
        /// </summary>
        public static string currentPath()
        {
            return AppDomain.CurrentDomain.BaseDirectory.ToString();
        }
        /*
        /// <summary>
        /// 创建日志文件
        /// </summary>
        /// <param name="FileName"></param>
        /// <returns></returns>
        public static FileStream CreateFile(string FileName)
        {

            //FileStream fs1 = new FileStream(FileName, FileMode.Create, FileAccess.Write);//创建写入文件 
            return fs1;
        }
        */
    }
}
